Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Pomoc] kod c++ hacka


arek6094pl

Rekomendowane odpowiedzi

Opublikowano

siemka.

chcialem zrobic hacka na 5 slot ale cos nie wychodzi failed co robie zle?:P

 

 

 

 

 

#include <windows.h>

 

#define PlayerPointer 0x9EDD6C

#define ServerPointer 0x9EDD08

#define 5thSlot 0x1021BC

 

 

 

void 5thSlot

{

DWORD dwServerPointer = *(DWORD*)Serverpointer;

if(dwServerPointer != 0)

{

*(long*)(dwServerPointer + 5thSlot) = 1;

}

}

 

void timer ()

 

{

for(;;)

 

{

5thSlot();

Sleep(30);

}

 

BOOL WINAPI DllMain(HINSTANCE module, DWORD dwReason, LPVOID lpvReserved)

{

if(dwReason == DLL_PROCESS_ATTACH)

{

MessageBoxA(NULL, "Injected!", "Tytuł", MB_OK);

CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)timer, NULL, NULL, NULL);

}

return true;

}

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

pomocy:/

Opublikowano

pisz pw wytlumacze CI oco chodzi bo jak dam Cicode to sie nie nauczysz xD

 

@edit down szybszy ale wytlumacze Ci co zrobiles zle

 

tu caly code (dobry)

 

 

#include <windows.h>

#define PlayerPointer  0x9EDD6C
#define ServerPointer  0x9EDD08
#define Slot5		0x1021BC



void Slot ()
{
DWORD dwServerPointer = *(DWORD*)ServerPointer;
if(dwServerPointer != 0)
{
*(long*)(dwServerPointer + Slot5) = 1;
}
}

void timer ()

{

for(;

{
Slot();
Sleep(30);
}
}

BOOL WINAPI DllMain(HINSTANCE module, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
MessageBoxA(NULL, "Injected!", "Tytuł", MB_OK);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)timer, NULL, NULL, NULL);
}
return true;
}

 

 

wiec tak tu zrobiles roznice miedzy duza a mala litera

 

ty zrobiles tak

DWORD dwServerPointer = *(DWORD*)Serverpointer;

 

a powinno byc tak

 

DWORD dwServerPointer = *(DWORD*)ServerPointer;

 

ServerPointer - ta nazwa musi byc taksa sama jak w adresie

 

potem nei zakonczyles timera

 

void timer ()

 

{

for(; ;)

 

{

5thSlot();

Sleep(30);

}

 

sa 2 otwarte klamerki a 1 zamknieta a powinno byc 2

 

i jak konczysz funkce np slot void 5thSlot () musi byc zakonczine dwoma nawiasami a ty zrobiles tak void 5thSlot

Opublikowano

prosze powinno byc tak

#include <windows.h>

#define PlayerPointer 0x9EDD6C
#define ServerPointer 0x9EDD08
#define OFS_5thSlot   0x1021BC


void Slot()
{
DWORD dwServerPointer = *(DWORD*)ServerPointer;
if(dwServerPointer != 0)
{
*(long*)(dwServerPointer + OFS_5thSlot) = 1;
}
}

void timer ()

{
for(;

{
Slot();
Sleep(30);
}

BOOL WINAPI DllMain(HINSTANCE module, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
MessageBoxA(NULL, "Injected!", "Tytuł", MB_OK);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)timer, NULL, NULL, NULL);
}
return true;
}

1378747514-U216092.jpg

Opublikowano

#include <windows.h>

#define PlayerPointer 0x9EDD6C
#define ServerPointer 0x9EDD08
#define 5thSlot 0x1021BC

DWORD *ingame= (DWORD*)PlayerPointer;
DWORD *megame= (DWORD*)ServerPointer;

void UnProtectFloat( void* pxAddress, float code)
{
       unsigned long Protection;
       VirtualProtect((void*)pxAddress, sizeof(code), PAGE_READWRITE, &Protection);
       memcpy((void*)pxAddress, &code, sizeof(code));
       VirtualProtect((void*)pxAddress,sizeof(code), Protection, 0);
}



void 5thSlot
{
DWORD dwServerPointer = *(DWORD*)Serverpointer;
if(dwServerPointer != 0)
{
*(long*)(dwServerPointer + 5thSlot) = 1;
}
}

void timer ()

{
for(; 

{
5thSlot();
Sleep(30);
}
}

BOOL WINAPI DllMain(HINSTANCE module, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
MessageBoxA(NULL, "Injected!", "Thx to WARROCK_CODER", MB_OK);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)timer, NULL, NULL, NULL);
}
return true;
}

Sprawdź to... Robiłem minutkę to może coś przeoczyłem.

s

Opublikowano

DWORD dwServerPointer = *(DWORD*)Serverpointer;
if(dwServerPointer != 0)

 

#define ServerPointer 0x9EDD08

 

Przyjrzyj się, bo chyba widzę mały błąd. Ehh.. rzadko z dworda korzystałem ;/

 

@Edit

void 5thSlot

Tutaj jest też problem, ale kolega up poprawił go ;)

1393461645-U349224.png

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...